<?php

if (YII_ENV_DEV) {
    define('BACKEND_BASE_URL', 'http://be-yyl.local.hzy.com');
    // define('FRONTEND_BASE_URL', 'http://fe-yyl.local.hzy.com');
    define('API_BASE_URL', 'http://api-yyl.local.hzy.com');
    define('FRONTEND_BASE_URL', 'http://cxj.cross.echosite.cn');
    define('ESHOP_BASE_URL', 'http://eshop-apollo-pre.local.bulletelc.com');
    define('IMAGE_BASE_URL', 'http://img-yyl.local.hzy.com');
} else {
    define('BACKEND_BASE_URL', 'http://be.lahyb.com');
    // define('FRONTEND_BASE_URL', 'http://fe-yyl.tunnel.echomod.cn');
    define('FRONTEND_BASE_URL', 'http://fe-yyl.lahyb.com');
    define('API_BASE_URL', 'http://api-yyl.lahyb.com');
    define('ESHOP_BASE_URL', 'http://eshop-apollo-pre.local.bulletelc.com');
    define('IMAGE_BASE_URL', 'http://img-yyl.lahyb.com');
}

//define('BACKEND_BASE_URL', 'https://be-apollo-pre-staging.bulletelc.com');
//define('FRONTEND_BASE_URL', 'https://fe-apollo-pre-staging.bulletelc.com');
//define('ESHOP_BASE_URL', 'https://eshop-apollo-pre-staging.bulletelc.com');
//define('IMAGE_BASE_URL', 'https://img-apollo-pre-staging.bulletelc.com');

//define('BACKEND_BASE_URL', 'https://be-apollo-pre.kebiyj.com');
//define('FRONTEND_BASE_URL', 'https://fe-apollo-pre.kebiyj.com');
//define('ESHOP_BASE_URL', 'https://eshop-apollo-pre.kebiyj.com');
//define('IMAGE_BASE_URL', 'https://img-apollo-pre.kebiyj.com');

Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('@appimage', dirname(dirname(__DIR__)) . '/app_image/uploads');
Yii::setAlias('@app_eshop', dirname(dirname(__DIR__)) . '/app_eshop');
Yii::setAlias('@api', dirname(dirname(__DIR__)) . '/api');

define('K_ACTIVITY_RANK', 'activity_rank:');
define('K_PLAYER', 'player:');
define('K_USER_ID', 'user:');
define('K_PLAYER_ID', 'player:');
define('K_VOTED', 'voted:'); // 缓存一天
